<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Poppins', sans-serif;
    }

    body {
      display: flex;
      justify-content: center;
      align-items: center;
      min-height: 100vh;
      background: rgb(24, 19, 44);
    }

    body::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(#f00, #f0f);
      clip-path: circle(30% at right 70%);
    }

    body::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: linear-gradient(#219699, #f78);
      clip-path: circle(20% at 10% 10%);
    }

    .container {
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
      max-width: 1200px;
      flex-wrap: wrap;
      z-index: 1;
    }

    .container .card {
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;
      width: 280px;
      height: 400px;
      margin: 30px;
      box-shadow: 20px 20px 50px rgba(0, 0, 0, 0.5);
      border-radius: 15px;
      background: rgba(255, 255, 255, 0.1);
      overflow: hidden;
      border-top: 1px solid rgba(255, 255, 255, 0.5);
      border-left: 1px solid rgba(255, 255, 255, 0.5);
      backdrop-filter: blur(5px);
    }

    .container .card .content {
      padding: 20px;
      text-align: center;
      transform: translateY(100px);
      opacity: 0;
      transition: .5s;
    }

    .container .card:hover .content {
      transform: translateY(0px);
      opacity: 1;
    }

    .container .card .content h2 {
      position: absolute;
      top: -80px;
      right: 30px;
      font-size: 8em;
      color: rgba(255, 255, 255, 0.05);
      pointer-events: none;
    }

    .container .card .content h3 {
      font-size: 1.8em;
      color: #fff;
      z-index: 1;
    }

    .container .card .content p {
      font-size: 1em;
      color: #fff;
      font-weight: 300;
    }

    .container .card .content a {
      position: relative;
      display: inline-block;
      padding: 8px 20px;
      margin-top: 15px;
      background: #fff;
      color: #000;
      border-radius: 20px;
      text-decoration: none;
      font-weight: 500;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }
  </style>
</head>

<body>
  <div class="container">
    <div class="card">
      <div class="content">
        <h2>01</h2>
        <h3>一号卡片</h3>
        <p>安静的坐下来，付出点时间，做一些有意义的事情</p>
        <a href="#">查看更多</a>
      </div>
    </div>
    <div class="card">
      <div class="content">
        <h2>02</h2>
        <h3>二号卡片</h3>
        <p>安静的坐下来，付出点时间，做一些有意义的事情</p>
        <a href="#">查看更多</a>
      </div>
    </div>

    <div class="card">
      <div class="content">
        <h2>03</h2>
        <h3>三号卡片</h3>
        <p>安静的坐下来，付出点时间，做一些有意义的事情</p>
        <a href="#">查看更多</a>
      </div>
    </div>
  </div>
  <script type="text/javascript" src="vanilla-tilt.js"></script>
  <script>
    VanillaTilt.init(document.querySelectorAll(".card"), {
      max: 25,
      speed: 400,
      glare: true,
      "max-glare": 1
    });
  </script>
</body>

</html>